package com.taxi.controller;

import com.taxi.request.ForecastPriceDOT;
import com.taxi.result.Result;
import com.taxi.service.DirectionService;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * @Author: aniu
 * @Date: 2023/9/25
 * @ClassName: DriectionController
 * @Description: Write class functionality and purpose here.
 * @Version: 1.0
 */
@RestController
@RequestMapping("/direction")
public class DriectionController {

    @Autowired
    private DirectionService directionService;

    @ApiOperation("获取距离和时长")
    @PostMapping("/driving")
    public Result driving(@RequestBody ForecastPriceDOT forecastPriceDOT){
        return directionService.driving(forecastPriceDOT);
    }
}
